__author__ = 'zhuxh'

import json
import urllib
import xmllib


def square(x):
    '''
    Squares a number and returns the results.
    >>> square(2)
    4
    >>> square(3)
    9
    '''
    return x * x


def sum(x):
    '''
    Squares a number and returns the results.
    >>> sum(2)
    4
    >>> sum(3)
    7
    '''
    return x + x


if __name__ == '__main__':
    import doctest, my_math
    doctest.testmod(my_math)

#运行 python my_math.py -v
#会打印测试结果
#test push
